import 'package:flutter/material.dart';
import 'package:top_foundation/top_foundation.dart';

import '../index.dart';

/// hello
class HomeCell extends GetView<HomeController> {
  const HomeCell({
    Key? key,
    required this.mod,
    this.itemKey,
  }) : super(key: key);
  final HomeItemModel mod;
  final GlobalKey? itemKey;
  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: mod.callback,
      child: Container(
        height: 44.r,
        key: itemKey,
        color: Colors.white,
        padding:
            EdgeInsets.symmetric(horizontal: TopConfig.outerhHorizontalPadding),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            Container(
              width: 68,
              child: Text(mod.title),
            ),
            Icon(Icons.chevron_right_outlined),
          ],
        ),
      ),
    );
  }
}
